package text1;
import java.io.*;
public class ObjectOutputTest {
	public static void main(String[] args) throws Exception{
		ObjectOutputTest test=new ObjectOutputTest();
		Employee em=new Employee(29,"james",4000f);
		test.WriteObj(em);
	}
	
	public void WriteObj(Object ob) throws Exception{
		FileOutputStream fo=null;
		ObjectOutputStream oos=null;
		fo=new FileOutputStream("D:\\obj.ini");
		oos=new ObjectOutputStream(fo);
		Object obj = null;
		oos.writeObject(obj);
		oos.flush();
		fo.close();
	}

}
